package com.yezi.lampcourt.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by HongMing Ye
 * on 2017/10/9 0009.
 */

public class CourtBean implements Parcelable {

    /**
     * collectName : 集中器1
     * collectid : COLLA2017010000000139
     * courtName : 东莞球场
     * courtid : 01
     */

    private String collectName;
    private String collectid;
    private String courtName;
    private String courtid;

    public String getCollectName() {
        return collectName;
    }

    public void setCollectName(String collectName) {
        this.collectName = collectName;
    }

    public String getCollectid() {
        return collectid;
    }

    public void setCollectid(String collectid) {
        this.collectid = collectid;
    }

    public String getCourtName() {
        return courtName;
    }

    public void setCourtName(String courtName) {
        this.courtName = courtName;
    }

    public String getCourtid() {
        return courtid;
    }

    public void setCourtid(String courtid) {
        this.courtid = courtid;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.collectName);
        dest.writeString(this.collectid);
        dest.writeString(this.courtName);
        dest.writeString(this.courtid);
    }

    public CourtBean() {
    }

    @Override
    public String toString() {
        return "CourtBean{" +
                "collectName='" + collectName + '\'' +
                ", collectid='" + collectid + '\'' +
                ", courtName='" + courtName + '\'' +
                ", courtid='" + courtid + '\'' +
                '}';
    }

    protected CourtBean(Parcel in) {
        this.collectName = in.readString();
        this.collectid = in.readString();
        this.courtName = in.readString();
        this.courtid = in.readString();
    }

    public static final Parcelable.Creator<CourtBean> CREATOR = new Parcelable.Creator<CourtBean>() {
        @Override
        public CourtBean createFromParcel(Parcel source) {
            return new CourtBean(source);
        }

        @Override
        public CourtBean[] newArray(int size) {
            return new CourtBean[size];
        }
    };
}
